package s2elinshu;

import java.util.Scanner;

public class J10Account {
	public static void main(String[] args) {
		String aid, dateCreated;
		int balance, withDraw, deposit;
		double interestRate, monthlyInterestRate;

		Scanner sc = new Scanner(System.in);
		System.out.println("계좌번호를 입력하세요");
		aid = sc.next();
		System.out.println("계좌개설일을 입력하세요");
		dateCreated = sc.next();
		System.out.println("통장잔액을 입력하세요");
		balance = sc.nextInt();
		System.out.println("연이율을 입력하세요");
		interestRate = sc.nextDouble();
		System.out.println("출금액을 입력하세요");
		withDraw = sc.nextInt();
		System.out.println("입금액을 입력하세요");
		deposit = sc.nextInt();
		
		sc.close();
		
		monthlyInterestRate = getMonthlyInterestRate(interestRate);
		
		System.out.println("계좌번호는"+aid);
		System.out.println("계좌개설일은"+dateCreated);
		System.out.println("통장잔액은"+balance);
		System.out.println("연이율은"+interestRate);
		System.out.println("월이율은"+monthlyInterestRate);
		System.out.println("출금액은"+withDraw);
		System.out.println("입금액은"+deposit);


	} // main 닫음
	private static double getMonthlyInterestRate(double interestRate) {
		return (interestRate/12);
	}
}// class 닫음
